﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebApi.Core.IRepository;
using WebApi.Core.IRepository.Base;
using WebApi.Core.IService;
using WebApi.Core.Model;
using WebApi.Core.Service.Base;

namespace WebApi.Core.Service
{
    public class RoleService : BaseService<Roles>, IRoleService
    {
        private readonly IRoleRepository _roleRepository;
        public RoleService(IRoleRepository roleRepository) : base(roleRepository) 
        {
            _roleRepository = roleRepository;
        }

        public Task<List<Roles>> GetRolesByUserIdAsync(string userId)
        {
            return _roleRepository.GetRolesByUserIdAsync(userId);
        }
    }
}
